package com.eduhzy.ttw.teacher.di.component;

import dagger.BindsInstance;
import dagger.Component;

import com.jess.arms.di.component.AppComponent;

import com.eduhzy.ttw.teacher.di.module.HomeModule;
import com.eduhzy.ttw.teacher.mvp.contract.HomeContract;
import com.jess.arms.di.scope.FragmentScope;
import com.eduhzy.ttw.teacher.mvp.ui.fragment.HomeFragment;

/**
 * @author xubo
 * @date 2018-7-20 8:37:20
 */
@FragmentScope
@Component(modules = HomeModule.class, dependencies = AppComponent.class)
public interface HomeComponent {
    void inject(HomeFragment fragment);

    @Component.Builder
    interface Builder {
        @BindsInstance
        HomeComponent.Builder view(HomeContract.View view);

        HomeComponent.Builder appComponent(AppComponent appComponent);

        HomeComponent build();
    }


}